package com.perfma.xtest.tool;

import com.alibaba.fastjson.JSON;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.ProtocolVersion;
import org.apache.http.RequestLine;
import org.apache.http.message.BasicHttpResponse;
import org.apache.http.message.BasicRequestLine;
import org.apache.http.message.BasicStatusLine;

/**
 * @author: junhui.si
 * @date: 2022-01-12 11:34
 **/
public class ResponseDemo {

    public static void main(String[] args) {
        Response response = new Response(new BasicRequestLine("", "", new ProtocolVersion("", 0, 0)), new HttpHost("http://10.2.99.6:9200/"), new BasicHttpResponse(new BasicStatusLine(new ProtocolVersion("", 1, 1), 0, "")));
        System.out.println(JSON.toJSONString(response));
    }
}
